@extends('admin.base.index')

@section('tables')     
 <div class="col-lg-12">
    <section class="panel">
        <header class="panel-heading">
            修改轮播
        </header>
        <div class="panel-body">
            <form role="form" class="form-horizontal adminex-form" action='/admin/carousel/{{ $profile->id }}' method="post" enctype="multipart/form-data">
             {{ csrf_field() }}
             {{ method_field('PUT') }}
                <div class="form-group has-success">
                    <label class="col-lg-2 control-label">地址：</label>
                    <div class="col-lg-4">
                        <input type="text" name="address" id="f-name" class="form-control" value='{{ $profile->address }}'>
                    </div>
                </div>
                <div class="form-group has-error">
                    <label class="col-lg-1 control-label">图片:</label>
                    <div class="col-lg-4">
                        <img src="{{ $profile->profile }}" width="100px" alt="">
                        <input type="file" name="profile">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-lg-offset-2 col-lg-10">
                       
                        <button class="btn btn-primary" type="submit">确认修改</button>
                    </div>
                </div>
            </form>
        </div>
    </section>
    </div>
@endsection                